// create by {{VERSION}}
{{GLOBAL_NAME}} = {{GLOBAL_NAME}} || (function () {
    var modules = {};
    var module_events = {};
    var global = {
        define: function (moduleId, moduleResult) {
            if ('default' in moduleResult) {
                moduleResult = Object.assign(moduleResult.default, moduleResult);
            }
            modules[moduleId] = moduleResult;
        },
        require: function (moduleId) {
            var moduleResult = modules[moduleId];
            if (!moduleResult && '.' != moduleId.charAt(0)) {
                throw new Error("module not found: " + moduleId);
            }
            return moduleResult;
        },
    }
    {{#if is_dev}}
    window.__f2e_esbuild_inject_hot__ = global.hot = {
        accept: function (moduleId, listener) {
            module_events[moduleId] = (module_events[moduleId] || []).concat(listener)
        },
        dispose: function (moduleId, listener) {
            module_events[moduleId] = (module_events[moduleId] || []).filter(fn => fn != listener)
        },
        emit: function (moduleId) {
            module_events[moduleId] && module_events[moduleId].forEach(fn => fn(global.require(moduleId)));
        }
    }
    {{/if}}
    return global;
})();